<template>
  <div>
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  <% if (darkMode) { %>
  created () {
    let theme = localStorage.getItem('theme')
    if (theme !== 'light' && theme !== 'dark') theme = 'light'
    this.$store.commit('user/setTheme', theme)
  }
  <% } %>

}
</script>

<style lang="scss">
@import "@/common/style/index.scss";

.el-scrollbar__wrap {
  overflow-x: hidden !important;
  // 因为全局禁用了Scrollbar组件的x轴滚动条，所以要把默认的-7px高度去掉
  margin-bottom: 0 !important;
}

html {
  font-family: San Francisco, Helvetica Neue, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, 微软雅黑, Arial, sans-serif;
  color: var(--globalColor)
}
</style>
